<?php

namespace app\model\exam;

use app\model\company\Company;
use app\model\TimeModel;
use think\model\Relation;

class Exam extends TimeModel
{
    protected $table = 'sj_exam';

    protected $type = [
        'exam_time' => 'datetime' ,
    ] ;

    public function company(): Relation
    {
        return $this->belongsTo(Company::class, 'company_id', 'id');
    }
}